package com.lili.model.operate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("li_distribution_order")
public class DistributionOrder implements Serializable {
    private static final long SerialVersionUID = 1L;
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    Long id;

    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    LocalDateTime createTime;
    String distributionId;
    String distributionName;
    String distributionOrderStatus;
    String goodsId;
    String goodsName;
    String image;
    String memberId;
    String memberName;
    String orderItemSn;
    String orderSn;
    Integer num;
    Double rebate;
    Double sellBackRebate;
    LocalDateTime settleCycle;
    String skuId;
    String specs;
    String storeId;
    String storeName;

}
